package com.hhss.qishi.DPtest.designpattern.command;

/**
 * 电灯开启命令
 */
public class LightOnCommand implements Command {

    Light light;

    public LightOnCommand(Light light){
        this.light = light;
    }

    @Override
    public void execute() {
        light.on();

    }
}
